package com.chhuang.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName SaUserVo
 * @Description SaUser当前登录用户实体
 * @Author Darren Huang
 * @Date 2022/12/21 23:19
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SaUser当前登录用户实体", description = "SaUser当前登录用户实体")
public class SaUser implements Serializable {
    private static final long serialVersionUID = -61405611539806412L;

    /**
     * 用户编号
     */
    @ApiModelProperty(value = "用户编号")
    private String userId;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String username;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    private String nickname;

    /**
     * 姓
     */
    @ApiModelProperty(value = "姓")
    private String lastname;

    /**
     * 名
     */
    @ApiModelProperty(value = "名")
    private String firstname;

    /**
     * 性别：男1，女0
     */
    @ApiModelProperty(value = "性别：男1，女0")
    private Byte gender;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    private String phone;

    /**
     * 电子邮箱号
     */
    @ApiModelProperty(value = "电子邮箱号")
    private String email;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String photo;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modifyTime;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 令牌
     */
    @ApiModelProperty(value = "令牌")
    private String token;

    /**
     * 客户端唯一标识
     */
    @ApiModelProperty(value = "客户端唯一标识")
    private String clientUUID;

    //roleList  menuList...

}
